package com.yhgarden.bbs.mapper.system;

import com.yhgarden.bbs.entity.system.RoleMenu;
import com.yhgarden.bbs.entity.vo.menu.RoleMenuTitleVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author Laijiaxiang
* @since 2019-09-17
*/
public interface RoleMenuMapper  {

    public int create(RoleMenu roleMenu);

    public int batchCreate(@Param("example") List<RoleMenu> roleMenuList);

    public int update(RoleMenu roleMenu);

    public RoleMenu getById(@Param("id") String id);

    public RoleMenu getByIdForList(@Param("id") String id);

    public RoleMenu getByIdMoreDetail(@Param("id") String id);

    public List<RoleMenuTitleVo> getByRoleId(@Param("roleId") String roleId);

    public int queryCount(@Param("example") RoleMenu roleMenu);

    public List<RoleMenu> query(@Param("example") RoleMenu roleMenu,
                                @Param("order") String order,
                                @Param("field") String field);

    public List<RoleMenu> queryForList(@Param("example") RoleMenu roleMenu,
                                       @Param("order") String order,
                                       @Param("field") String field);

    public List<RoleMenu> queryMoreDetail(@Param("example") RoleMenu roleMenu,
                                          @Param("order") String order,
                                          @Param("field") String field);

    public int delete(@Param("id") String id);

    public int deleteByExample(@Param("example") RoleMenu roleMenu);

    public int batchDelete(@Param("ids") List<String> ids);

}

